GNU CC Command Options

Contents|Index|Previous|Next
GNU CC command options

When you invoke the GNU compiler, GCC, it normally does preprocessing, compilation, assembly and linking. The overall options allow you to stop this process at intermediate stages. Some options control the preprocessor, others the compiler itself, while still other options control the assembler and linker. For example, the ‘`-c`’ option (see Options controlling the kind of output) says to compile or to assemble the source files without running the linker. Then the output consists of object files’ output by the assembler. Other options are passed on to one stage of processing. Most of the command line options that you can use with GCC are useful for C programs; when an option is only useful with another language (usually C++), the explanation explicitly states such usage.

The following documentation discusses the GNU CC command options. See Options summary for a list of options, grouped by type.

- Options controlling the kind of output
- Compiling C programs
- Options controlling C dialect
- Options that control C++ dialect
- Options to request or suppresss warnings
- Options for debugging your program or GNU CC
- Options that control optimization
- Options controlling the preprocessor
- Passing options tothe assembler
- Options for linking
- Options for directory search
- Specifying target machine and compiler version
- Hardware models and configurations

- AMD29K options
- ARC options
- ARM options
- ARM Thumb options
- Clipper options
- Convex options
- DEC Alpha options
- Hitachi H8/300 options
- Hitachi SH options
- HPPA options
- IBM PowerPC options
- IBM RS/6000 options
- IBM RT options
- Intel `x`86 options
- Intel 960 options
- Matsushita MN10200/MN10300 options
- MIPS options
- Mitsubishi D10V options
- Mitsubishi M32R/D options
- Motorola 68K options
- Motorola 88K options
- NEC V850 options
- SPARC options
- System V options
- VAX options
- Zilog options

- Options for code generation conventions
- The offset-info option

- Environmental variables affecting GNU CC
- Running the protoize program

Top|Contents|Index|Previous|Next